package com.bw.network_sdk;

import retrofit2.Retrofit;
import retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory;
import retrofit2.converter.gson.GsonConverterFactory;

public class NoneHttpRetrofitImpl extends BaseHttpRetrofitImpl{
    @Override
    protected long readtime() {
        return 60;
    }

    @Override
    protected long connectime() {
        return 60;
    }

    @Override
    protected long writetime() {
        return 60;
    }

    @Override
    public Retrofit createRetrofit() {
        Retrofit.Builder builder = new Retrofit.Builder();
        builder.client(createokHttpBuilder().build())
                .baseUrl(ApiConst.UPLOADURL)
                .addCallAdapterFactory(RxJava2CallAdapterFactory.create())
                .addConverterFactory(GsonConverterFactory.create());
        return builder.build();
    }
}
